package com.yonyou.brigade.order_center.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.yonyou.brigade.order_center.model.BriHotelOrder;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author jiangzhf@yonyou.com
 * @since 2018-06-14
 */
public interface BriHotelOrderMapper extends BaseMapper<BriHotelOrder> {
    List<BriHotelOrder> getBriHotelOrderList(Map params);

    void updateIsNoteByOrderId(Map params);

    void updateIsBxStateByOrderIds(Map params);

    List<BriHotelOrder> getHotelOrdersByRelateYBZIds(List<String> list);

    List<BriHotelOrder> getHotelOrdersByTimeRange(@Param("tenantId") String tenantId, @Param("begin") Date begin, @Param("end") Date end);

    BriHotelOrder getBriHotelOrderByOrderNo(String orderNo);

    List<BriHotelOrder> getOrdersByBxState(@Param("userId") String userId, @Param("bxState") String bxState, @Param("beginDate") String beginDate, @Param("endDate") String endDate, @Param("tenant") String tenant, @Param("canBeSeen") Map<String, List<Map<String, String>>> canBeSeen);
}
